package models;

import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import play.db.jpa.Model;
@Entity
@Table(name = "Snapshots")
public class Snapshot extends Model{
	
	public String name;
	
	@Lob
	public String url;
	
	Calendar dateTaken;
	
	@ManyToOne
	public Event event;
	
	public Snapshot(String name, String url)
	{
		this.name = name;
		this.url = url;
		this.dateTaken = Calendar.getInstance();
	}
	public Snapshot(String name, String url,Event event)
	{
		this.name = name;
		this.url = url;
		this.event=event;
		this.dateTaken = Calendar.getInstance();
	}


}
